import "package:ct_pa_majordomo/pages/device/collect/add_collect/index.dart";
import "package:ct_pa_majordomo/pages/device/collect/bound_ammeters/index.dart";
import "package:ct_pa_majordomo/pages/device/collect/detail/index.dart";
import "package:ct_pa_majordomo/pages/device/collect/index.dart";
import "package:ct_pa_majordomo/router/keys.dart";
import "package:flutter/material.dart";

class CollectRoutes {
  static Map<String, WidgetBuilder> getRoutes(BuildContext context) {
    return {
      ///采集器
      Keys.DEVICE_COLLECT: (context, {arguments}) => const Collect(),
      ///采集器 添加采集器
      Keys.DEVICE_COLLECT_ADD: (context, {arguments}) => const AddCollect(),
      ///采集器 详情
      Keys.DEVICE_COLLECT_DETAIL: (context, {arguments}) => Detail(collectId: arguments),
      /// 采集器 绑定的电表
      Keys.DEVICE_COLLECT_BIND_AMMETER: (context, {arguments}) => BoundAmmeters(collectId: arguments),
    };
  }
}